package com.rainwood.water_authority.http.response;

import com.google.gson.annotations.SerializedName;

/**
 * @author sxs
 * @date :2020/10/20
 * @desc: 扫码入库
 */
public final class MaterialsScanBean {

    /**
     * code : 1
     * warn :
     * data : {"number":"TX-0021","name":"物资名称3","speciModel":"规格型号3","unit":"毫米","type":"甲供","supplierName":"供应商名称1"}
     */
    @SerializedName("code")
    private int code;
    @SerializedName("warn")
    private String warn;
    @SerializedName("data")
    private DataDTO data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getWarn() {
        return warn;
    }

    public void setWarn(String warn) {
        this.warn = warn;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        /**
         * number : TX-0021
         * name : 物资名称3
         * speciModel : 规格型号3
         * unit : 毫米
         * type : 甲供
         * supplierName : 供应商名称1
         */
        @SerializedName("number")
        private String number;
        @SerializedName("name")
        private String name;
        @SerializedName("speciModel")
        private String speciModel;
        @SerializedName("unit")
        private String unit;
        @SerializedName("type")
        private String type;
        @SerializedName("supplierName")
        private String supplierName;
        @SerializedName("cType")
        private String cType;

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSpeciModel() {
            return speciModel;
        }

        public void setSpeciModel(String speciModel) {
            this.speciModel = speciModel;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getSupplierName() {
            return supplierName;
        }

        public void setSupplierName(String supplierName) {
            this.supplierName = supplierName;
        }

        public String getcType() {
            return cType;
        }

        public void setcType(String cType) {
            this.cType = cType;
        }

        @Override
        public String toString() {
            return "DataDTO{" +
                    "number='" + number + '\'' +
                    ", name='" + name + '\'' +
                    ", speciModel='" + speciModel + '\'' +
                    ", unit='" + unit + '\'' +
                    ", type='" + type + '\'' +
                    ", supplierName='" + supplierName + '\'' +
                    '}';
        }
    }
}